package com.xhl.spring.module.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStoppedEvent;
import org.springframework.stereotype.Component;

/**
 * @Author CazCen
 * @Date 2021/12/1 21:36
 */
@Component
@Slf4j
public class ContextStoppedEventListener implements ApplicationListener<ContextStoppedEvent> {
    @Override
    public void onApplicationEvent(ContextStoppedEvent event) {
        log.info("我是 ContextStoppedEvent 事件，已经发布了，监听到了吧!!!! ");
    }
}
